package com.itheima.commons.model.vo;

import com.itheima.commons.model.domain.SubjectOption;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SubjectOptionVo implements Serializable {

    private String id;
    private String option;


    public SubjectOptionVo(SubjectOption subjectOption) {
        this.id = subjectOption.getSid().toString();
        this.option = subjectOption.getContent();

    }
}